<template>
  <div class="poster">
    <poster :list="list"></poster>
  </div>
</template>

<script>
import poster from "@/components/item-poster";
import { getProjectList } from "@/api/miva";
export default {
  components: {
    poster
  },
  data() {
    return {
      list: []
    };
  },
  async mounted() {
    await this.getProjectList();
  },
  methods: {
    async getProjectList() {
      const res = await getProjectList({ type: 3 });
      this.list = res.data;
      console.log(this.list);
    }
  }
};
</script>

